<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.grep.web.IndexService,java.util.*"%> 
<%@ include file="/common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
IndexService indexService = new IndexService();
List allSites = indexService.getAllSites();
request.setAttribute("allSites",allSites);
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>采集情况监控</title>
		<link href="../style.css" type="text/css" rel="stylesheet" />
	</head>
	<body>
		<div id="header">
			<img src="${base }/images/logo.jpg" width="637" height="100" title="游戏搜搜在线采集系统" alt="游戏搜搜在线采集系统" style="float:left" />
			<ul>
				<li id="xuanzong">站点管理</li>
				<li id="weixuan"><a href="#">采集测试</a></li>
				<li id="weixuan"><a href="/grep/index.jsp">回返首页</a></li>
			</ul>
		</div>
		
		<div id="sider_left">
			<img src="${base }/images/leftbordertop.jpg" class="imgfloat" />
			<div id="sl_cont" class="siderborder">
				<span id="sltitle">采集任务 <span style="float:right;font-size:12px;"><a href="/grep/new_website.jsp">新建</a></span></span>
				<ul>
					<!-- <li id="slxuan">4399游戏</li>
					<li class="slwei"><a href="#">7k7k游戏</a></li>
					<li class="slwei"><a href="#">安卓小游戏</a></li>
					 -->
					 <c:forEach var="site" items="${allSites}">
                       	<li class="slwei"><a href="${base }/index.jsp?sitename=${site.siteName }">${site.siteName }</a></li>
                      </c:forEach>
				</ul>
			</div>
			<img src="${base }/images/leftborderbuttom.jpg" class="imgfloat" />
		</div>
		<div id="sider_right">
			<img src="${base }/images/rightbordertop.jpg" class="imgfloat" />
			<div id="sr_cont" class="siderborder">
				<%
					String issuccess = request.getParameter("issuccess");
					if(issuccess.equals("true")){
				%>
				成功
				<%
				}else{
				%>
				失败
				<%} %>
			</div>
			<img src="${base }/images/rightborderbuttom.jpg" class="imgfloat" />
		</div>
	</body>
</html>